﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using MyBlog.BLL;

namespace MyBlog.WebService
{
    /// <summary>
    /// test 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://www.Hsppl.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
     [System.Web.Script.Services.ScriptService]
    public class test : System.Web.Services.WebService
    {
        private static log4net.ILog myLogger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 

        BLL_ASMX_test bll_test = new BLL_ASMX_test();

        [WebMethod]
        public string GetBlogInfo()
        {
            try
            {
                return bll_test.GetBlogVersion();
            }
            catch (Exception ex)
            {
                myLogger.Error(ex.Message, ex);
                return ex.ToString();
            }
        }
    }
}
